package com.dataeco.api.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "apps")
public class App implements Serializable {
    private static final long serialVersionUID = -7127558174787505923L;
    @Id
    private String id;
    @ManyToOne
    @JoinColumn(name = "user_id")
    private User user;
    private String name;
    private String code;
    @Column(name = "category_id")
    private Long categoryId;
    @Column(name = "tag_ids")
    private String tagIds;
    private String platform;
    private String stage;
    private String orientation;
    @Column(name = "package_name")
    private String packageName;
    private String icon;
    @Column(name = "portrait_images")
    private String portraitImages;
    @Column(name = "landscape_images")
    private String landscapeImages;
    private Boolean configured;
    private Boolean initialized;
    private Boolean available = Boolean.TRUE;
    @Column(name = "check_status")
    private String check_status;
    @Column(name = "created_at")
    private Date createdAt;
    @Column(name = "modified_at")
    private Date modifiedAt;
    private Boolean synced;
    @Column(name = "synced_at")
    private Date syncedAt;

    @Column(name = "config_mode")
    private String configMode;

    @Column(name = "apk_id")
    private String apkId;

    @Column(name = "is_email")
    private String isEmail;

    @Column(name = "adp_description")
    private String adpDescription;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public String getCheck_status() {
        return check_status;
    }

    public void setCheck_status(String check_status) {
        this.check_status = check_status;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getTagIds() {
        return tagIds;
    }

    public void setTagIds(String tagIds) {
        this.tagIds = tagIds;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public String getStage() {
        return stage;
    }

    public void setStage(String stage) {
        this.stage = stage;
    }

    public String getOrientation() {
        return orientation;
    }

    public void setOrientation(String orientation) {
        this.orientation = orientation;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getPortraitImages() {
        return portraitImages;
    }

    public void setPortraitImages(String portraitImages) {
        this.portraitImages = portraitImages;
    }

    public String getLandscapeImages() {
        return landscapeImages;
    }

    public void setLandscapeImages(String landscapeImages) {
        this.landscapeImages = landscapeImages;
    }

    public Boolean getConfigured() {
        return configured;
    }

    public void setConfigured(Boolean configured) {
        this.configured = configured;
    }

    public Boolean getInitialized() {
        return initialized;
    }

    public void setInitialized(Boolean initialized) {
        this.initialized = initialized;
    }

    public Boolean getAvailable() {
        return available;
    }

    public void setAvailable(Boolean available) {
        this.available = available;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getModifiedAt() {
        return modifiedAt;
    }

    public void setModifiedAt(Date modifiedAt) {
        this.modifiedAt = modifiedAt;
    }

    public Boolean getSynced() {
        return synced;
    }

    public void setSynced(Boolean synced) {
        this.synced = synced;
    }

    public Date getSyncedAt() {
        return syncedAt;
    }

    public void setSyncedAt(Date syncedAt) {
        this.syncedAt = syncedAt;
    }

    public String getConfigMode() {
        return configMode;
    }

    public void setConfigMode(String configMode) {
        this.configMode = configMode;
    }

    public String getApkId() {
        return apkId;
    }

    public void setApkId(String apkId) {
        this.apkId = apkId;
    }

    public String getIsEmail() {
        return isEmail;
    }

    public void setIsEmail(String isEmail) {
        this.isEmail = isEmail;
    }

    public String getAdpDescription() {
        return adpDescription;
    }

    public void setAdpDescription(String adpDescription) {
        this.adpDescription = adpDescription;
    }
}
